home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / idl / nsIDOMNSEvent.idl < prev    next >
Encoding:
Text File  |  2006-05-08  |  4.5 KB  |  112 lines

  1. /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* ***** BEGIN LICENSE BLOCK *****
  3.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.  *
  5.  * The contents of this file are subject to the Mozilla Public License Version
  6.  * 1.1 (the "License"); you may not use this file except in compliance with
  7.  * the License. You may obtain a copy of the License at
  8.  * http://www.mozilla.org/MPL/
  9.  *
  10.  * Software distributed under the License is distributed on an "AS IS" basis,
  11.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.  * for the specific language governing rights and limitations under the
  13.  * License.
  14.  *
  15.  * The Original Code is mozilla.org code.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Netscape Communications Corporation.
  19.  * Portions created by the Initial Developer are Copyright (C) 2000
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *   Johnny Stenback <jst@netscape.com> (original author)
  24.  *
  25.  * Alternatively, the contents of this file may be used under the terms of
  26.  * either of the GNU General Public License Version 2 or later (the "GPL"),
  27.  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.  * in which case the provisions of the GPL or the LGPL are applicable instead
  29.  * of those above. If you wish to allow use of your version of this file only
  30.  * under the terms of either the GPL or the LGPL, and not to allow others to
  31.  * use your version of this file under the terms of the MPL, indicate your
  32.  * decision by deleting the provisions above and replace them with the notice
  33.  * and other provisions required by the GPL or the LGPL. If you do not delete
  34.  * the provisions above, a recipient may use your version of this file under
  35.  * the terms of any one of the MPL, the GPL or the LGPL.
  36.  *
  37.  * ***** END LICENSE BLOCK ***** */
  38.  
  39. #include "domstubs.idl"
  40.  
  41. %{C++
  42. #ifdef WINCE
  43. #undef ERROR
  44. #endif
  45. %}
  46.  
  47. [scriptable, uuid(e565d518-4510-407f-a3d9-3b4107549c6d)]
  48. interface nsIDOMNSEvent : nsISupports
  49. {
  50.   const long MOUSEDOWN    = 0x00000001;
  51.   const long MOUSEUP      = 0x00000002;
  52.   const long MOUSEOVER    = 0x00000004;
  53.   const long MOUSEOUT     = 0x00000008;
  54.   const long MOUSEMOVE    = 0x00000010;
  55.   const long MOUSEDRAG    = 0x00000020;
  56.   const long CLICK        = 0x00000040;
  57.   const long DBLCLICK     = 0x00000080;
  58.   const long KEYDOWN      = 0x00000100;
  59.   const long KEYUP        = 0x00000200;
  60.   const long KEYPRESS     = 0x00000400;
  61.   const long DRAGDROP     = 0x00000800;
  62.   const long FOCUS        = 0x00001000;
  63.   const long BLUR         = 0x00002000;
  64.   const long SELECT       = 0x00004000;
  65.   const long CHANGE       = 0x00008000;
  66.   const long RESET        = 0x00010000;
  67.   const long SUBMIT       = 0x00020000;
  68.   const long SCROLL       = 0x00040000;
  69.   const long LOAD         = 0x00080000;
  70.   const long UNLOAD       = 0x00100000;
  71.   const long XFER_DONE    = 0x00200000;
  72.   const long ABORT        = 0x00400000;
  73.   const long ERROR        = 0x00800000;
  74.   const long LOCATE       = 0x01000000;
  75.   const long MOVE         = 0x02000000;
  76.   const long RESIZE       = 0x04000000;
  77.   const long FORWARD      = 0x08000000;
  78.   const long HELP         = 0x10000000;
  79.   const long BACK         = 0x20000000;
  80.   const long TEXT         = 0x40000000;
  81.  
  82.   const long ALT_MASK     = 0x00000001;
  83.   const long CONTROL_MASK = 0x00000002;
  84.   const long SHIFT_MASK   = 0x00000004;
  85.   const long META_MASK    = 0x00000008;
  86.  
  87.   /** The original target of the event, before any retargetings. */
  88.   readonly attribute nsIDOMEventTarget  originalTarget;
  89.   /**
  90.    * The explicit original target of the event.  If the event was retargeted
  91.    * for some reason other than an anonymous boundary crossing, this will be set
  92.    * to the target before the retargeting occurs.  For example, mouse events
  93.    * are retargeted to their parent node when they happen over text nodes (bug
  94.    * 185889), and in that case .target will show the parent and
  95.    * .explicitOriginalTarget will show the text node.
  96.    * .explicitOriginalTarget differs from .originalTarget in that it will never
  97.    * contain anonymous content.
  98.    */
  99.   readonly attribute nsIDOMEventTarget  explicitOriginalTarget;
  100.   /* XXX This is TEMPORARY.  
  101.    * The original target, without any retargeting (like textnode retargeting).
  102.    * This really needs to be in .originalTarget, but this is a less risky way of
  103.    * fixing it.
  104.    */
  105.   [noscript] readonly attribute nsIDOMEventTarget  tmpRealOriginalTarget;
  106.  
  107.   void                      preventBubble();
  108.   void                      preventCapture();
  109.  
  110.   readonly attribute boolean isTrusted;
  111. };
  112.